xl: convert main() exit codes to EXIT_[SUCCESS|FAILURE]
authorHarmandeep Kaur <write.harmandeep@gmail.com>
Wed, 28 Oct 2015 02:26:20 +0000 (07:56 +0530)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 3 Nov 2015 17:03:03 +0000 (17:03 +0000)
commit00e110e44a0eb268fb7705a3f333f10f01f33eca
tree170e97d5a0c3eb71e8ab788c72d9897a3f735807
parent1dbe5d9ed6d698b0a24ada014d6747fb984dc13d
xl: convert main() exit codes to EXIT_[SUCCESS|FAILURE]

Turning main() function exit codes towards using the EXIT_[SUCCESS|FAILURE]
constants, instead of instead of arbitrary numbers or libxl return codes.

Also includes a document comment in xl.h stating xl process should always
return EXIT_FOO and main_* can be treated as main() as if they are returning
a process exit status and not a function return value)

Signed-off-by: Harmandeep Kaur <write.harmandeep@gmail.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/xl.c
tools/libxl/xl.h